﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Frogsoft.Permission.Dtos
{
    public class AppUserRoleItemDto
    {
        public string? title { get; set; }
        public string? value { get; set; }
        [JsonPropertyName("checked")]
        public bool Checked { get; set; }
        public bool disabled { get; set; }
    }

    public class AppUserRoleDto
    {
        public AppUserRoleDto()
        {
        }

        public AppUserRoleDto(List<AppUserRoleItemDto> allItems, List<string> grantItems)
        {
            this.allItems = allItems;
            this.grantItems = grantItems;
        }

        public List<AppUserRoleItemDto>? allItems { get; set; }
        public List<string>? grantItems { get; set; }
    }
}